import request from '@/utils/request'

export function insertClassify(data) {
  return request({
    url: '/practice/classify/insertClassify',
    method: 'post',
    data
  })
}

export function updateClassify(data) {
  return request({
    url: '/practice/classify/updateClassify',
    method: 'post',
    data
  })
}

export function listClassifyAdmin(query) {
  return request({
    url: '/practice/classify/listClassifyAdmin',
    method: 'get',
    params: query
  })
}

export function listClassifyParent() {
  return request({
    url: '/practice/classify/listClassifyParent',
    method: 'get'
  })
}

export function deleteClassify(query) {
  return request({
    url: '/practice/classify/deleteClassify',
    method: 'post',
    params: query
  })
}
